package org.dromara.bykt.domain.bo;

import org.dromara.bykt.domain.BYKTCourseOrder;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;

/**
 * 课程订单业务对象 course_order
 *
 * @author Hou
 * @date 2025-06-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = BYKTCourseOrder.class, reverseConvertGenerate = false)
public class BYKTCourseOrderBo extends BaseEntity {

    /**
     * 订单ID
     */
    private Long id;

    /**
     * 订单编号
     */
    @NotBlank(message = "订单编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String orderNo;

    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 课程ID
     */
    @NotNull(message = "课程ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long courseId;

    /**
     * 支付金额
     */
    @NotNull(message = "支付金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long amount;

    /**
     * 状态（0未支付 1已支付 2已取消）
     */
    private String status;

    /**
     * 支付方式（1微信 2支付宝 3余额）
     */
    private String payType;

    /**
     * 支付时间
     */
    private Date payTime;

    /**
     * 备注
     */
    private String remark;

    /**
     * 课程ID(批量上传课程id)
     */
    private String courseIds;

}
